home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / MPW IIGS SC / SC.002.BusyBox / busybox.c / busy.c next >
Encoding:
C/C++ Source or Header  |  1990-06-19  |  1.1 KB  |  42 lines  |  [TEXT/MPS ]

  1. /***********************************************************************
  2. *
  3. * busybox.c -- Version 3.0  (Main Program)
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.    1986-1990
  7. * All Rights Reserved.
  8. *
  9. * This file contains the busybox program.
  10. *
  11. ***********************************************************************/
  12.  
  13. #include <types.h>
  14. #include <locator.h>
  15. #include <memory.h>
  16. #include <quickdraw.h>
  17.  
  18. extern unsigned int    userID;
  19.  
  20. main()
  21. {
  22.     Ref     initRef;        /* This holds the reference to the startstop record */
  23.  
  24.     initGlobals();            /* Initialize our globals. */
  25.     
  26.     userID = MMStartUp();    /* Start up and get ID from memory manager */
  27.     TLStartUp();                /* Start up the tool locator */
  28.  
  29.     /* Startup the tools using the new toolbox call */
  30.     initRef = StartUpTools(_ownerid, refIsResource, 0x0001L);
  31.     if (!_toolErr) {
  32.         setupMenus();        /* Set up menus */
  33.         setupWindows();
  34.         InitCursor();        /* Make cursor show ready */
  35.         mainEvent();        /* Use application */
  36.     }
  37.  
  38.     ShutDownTools(refIsHandle, initRef);   /* Let toolbox shutdown the tools. */
  39.     TLShutDown();                           /* Shut down the tool locator */
  40.         
  41. }
  42.